package com.dfsoft.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@Slf4j
@Controller
@RequestMapping(value = "/error")
public class ErrorController {


    @RequestMapping("/info")
    public String page(Model model, HttpServletRequest request, HttpServletResponse response)  {
        model.addAttribute("errorInfo",request.getAttribute("errorInfo"));
        return "error";
    }


}
